drm/i915/gt: Correct surface base address for renderclear
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 10 Feb 2021 12:27:28 +0000 (12:27 +0000)
committerSalvatore Bonaccorso <carnil@debian.org>
Tue, 2 Mar 2021 16:49:25 +0000 (16:49 +0000)
commit50558d047a6789a6cc8f1a9b1b4a152b8290e1fa
tree444f2413e166a3ade1509a395144da37fec26ccb
parentac2a27ce167b3f92b7974b8b566ccf1f986df63f
drm/i915/gt: Correct surface base address for renderclear

Origin: https://git.kernel.org/linus/81ce8f04aa96f7f6cae05770f68b5d15be91f5a2

The surface_state_base is an offset into the batch, so we need to pass
the correct batch address for STATE_BASE_ADDRESS.

Fixes: 47f8253d2b89 ("drm/i915/gen7: Clear all EU/L3 residual contexts")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Prathap Kumar Valsan <prathap.kumar.valsan@intel.com>
Cc: Akeem G Abodunrin <akeem.g.abodunrin@intel.com>
Cc: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: <stable@vger.kernel.org> # v5.7+
Link: https://patchwork.freedesktop.org/patch/msgid/20210210122728.20097-1-chris@chris-wilson.co.uk
(cherry picked from commit 1914911f4aa08ddc05bae71d3516419463e0c567)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Gbp-Pq: Topic bugfix/x86
Gbp-Pq: Name drm-i915-gt-Correct-surface-base-address-for-renderc.patch
drivers/gpu/drm/i915/gt/gen7_renderclear.c